package com.superlight.designer;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.superlight.designer.entity.Plan;
import org.junit.jupiter.api.Test;

public class TEST2 {

    @Test
    public void test(){
        Page page = new Page();
        page.setCurrent(1);
        page.setSize(1);
        String s = JSON.toJSONString(page);
        Object o = JSON.parseObject(s, Page.class);
        System.out.println(s);
        System.out.println(o);
    }
}
